package com.coffee.mycoffee.config.exception;

import lombok.Data;

/**
 * 自定义异常
 */
@Data
public class CoffeeException extends RuntimeException {

    private String msg;
    private Integer code;

    public CoffeeException() {
    }

    public CoffeeException(String msg, Integer code) {
        this.msg = msg;
        this.code = code;
    }
}
